package com.cc.entity;

import java.io.Serializable;
import java.util.Date;

public class EbUser implements Serializable {

    private String euUserId;
    private String euUserName;
    private String euPassword;
    private String euSex;
    private Date euBirthday;
    private String euIdentityCode;
    private String euEmail;
    private String euMobile;
    private String euAddress;
    private Integer euStatus;
    private static final long serialVersionUID = 1L;

    public String getEuUserId() {
        return euUserId;
    }
    public void setEuUserId(String euUserId) {
        this.euUserId = euUserId;
    }
    public String getEuUserName() {
        return euUserName;
    }
    public void setEuUserName(String euUserName) {
        this.euUserName = euUserName;
    }
    public String getEuPassword() {
        return euPassword;
    }
    public void setEuPassword(String euPassword) {
        this.euPassword = euPassword;
    }
    public String getEuSex() {
        return euSex;
    }
    public void setEuSex(String euSex) {
        this.euSex = euSex;
    }
    public Date getEuBirthday() {
        return euBirthday;
    }
    public void setEuBirthday(Date euBirthday) {
        this.euBirthday = euBirthday;
    }
    public String getEuIdentityCode() {
        return euIdentityCode;
    }
    public void setEuIdentityCode(String euIdentityCode) {
        this.euIdentityCode = euIdentityCode;
    }
    public String getEuEmail() {
        return euEmail;
    }
    public void setEuEmail(String euEmail) {
        this.euEmail = euEmail;
    }
    public String getEuMobile() {
        return euMobile;
    }
    public void setEuMobile(String euMobile) {
        this.euMobile = euMobile;
    }
    public String getEuAddress() {
        return euAddress;
    }
    public void setEuAddress(String euAddress) {
        this.euAddress = euAddress;
    }
    public Integer getEuStatus() {
        return euStatus;
    }
    public void setEuStatus(Integer euStatus) {
        this.euStatus = euStatus;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", euUserId=").append(euUserId);
        sb.append(", euUserName=").append(euUserName);
        sb.append(", euPassword=").append(euPassword);
        sb.append(", euSex=").append(euSex);
        sb.append(", euBirthday=").append(euBirthday);
        sb.append(", euIdentityCode=").append(euIdentityCode);
        sb.append(", euEmail=").append(euEmail);
        sb.append(", euMobile=").append(euMobile);
        sb.append(", euAddress=").append(euAddress);
        sb.append(", euStatus=").append(euStatus);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EbUser other = (EbUser) that;
        return (this.getEuUserId() == null ? other.getEuUserId() == null : this.getEuUserId().equals(other.getEuUserId()))
                && (this.getEuUserName() == null ? other.getEuUserName() == null : this.getEuUserName().equals(other.getEuUserName()))
                && (this.getEuPassword() == null ? other.getEuPassword() == null : this.getEuPassword().equals(other.getEuPassword()))
                && (this.getEuSex() == null ? other.getEuSex() == null : this.getEuSex().equals(other.getEuSex()))
                && (this.getEuBirthday() == null ? other.getEuBirthday() == null : this.getEuBirthday().equals(other.getEuBirthday()))
                && (this.getEuIdentityCode() == null ? other.getEuIdentityCode() == null : this.getEuIdentityCode().equals(other.getEuIdentityCode()))
                && (this.getEuEmail() == null ? other.getEuEmail() == null : this.getEuEmail().equals(other.getEuEmail()))
                && (this.getEuMobile() == null ? other.getEuMobile() == null : this.getEuMobile().equals(other.getEuMobile()))
                && (this.getEuAddress() == null ? other.getEuAddress() == null : this.getEuAddress().equals(other.getEuAddress()))
                && (this.getEuStatus() == null ? other.getEuStatus() == null : this.getEuStatus().equals(other.getEuStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEuUserId() == null) ? 0 : getEuUserId().hashCode());
        result = prime * result + ((getEuUserName() == null) ? 0 : getEuUserName().hashCode());
        result = prime * result + ((getEuPassword() == null) ? 0 : getEuPassword().hashCode());
        result = prime * result + ((getEuSex() == null) ? 0 : getEuSex().hashCode());
        result = prime * result + ((getEuBirthday() == null) ? 0 : getEuBirthday().hashCode());
        result = prime * result + ((getEuIdentityCode() == null) ? 0 : getEuIdentityCode().hashCode());
        result = prime * result + ((getEuEmail() == null) ? 0 : getEuEmail().hashCode());
        result = prime * result + ((getEuMobile() == null) ? 0 : getEuMobile().hashCode());
        result = prime * result + ((getEuAddress() == null) ? 0 : getEuAddress().hashCode());
        result = prime * result + ((getEuStatus() == null) ? 0 : getEuStatus().hashCode());
        return result;
    }
}